package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChanneDTO;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.stereotype.Service;

@Service
public interface ChannelService extends IService<AdChannel> {
    /**
     * 频道列表
     */
    ResponseResult findListByQuery(ChanneDTO dto);

    /**
     * 频道新增
     */
    ResponseResult insert(AdChannel channel);

    /*
     *修改频道及频道状态
     */
    ResponseResult update(AdChannel achannel);

    ResponseResult deleteById(Integer id);
}
